package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.ChannelRequest;
import com.ytjj.qmyx.admin.model.vo.ChannelVO;
import com.ytjj.qmyx.mall.model.Channel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ChannelDao {

    List<Channel> selectList(@Param("channel")String channel);

    List<Channel> getChannelList(ChannelRequest channelRequest);

    Integer isExist(String channel);

    Integer insertChannel(Channel channel);

    Integer addChannel(Channel channel);

    Integer updateChannel(ChannelRequest channelRequest);

    List<Channel> getChannelByPlat(String platform);

    List<Channel> getChannelByPlatform(String platform);

    Channel getChannelInfoByChannel(@Param("channel") String channel);

    Integer removeData(Integer id);

    void insertPromoteChannel(Channel channel);

    Integer getSerial(String channel);

    Integer inChannelParam(@Param("id") Integer id, @Param("channelParam") String channelParam);

    void updateChannelStatus(@Param("channelId") Integer channelId, @Param("channelStatus") String channelStatus);

    List<ChannelVO> findChannel();

    Integer getChannelIdByChannel(@Param("channel") String channel);

    List<Integer> getChannelIdByChannels(@Param("channels") List<String> channel);

    List<String> getChannelListByPid(@Param("pid") Integer pid);

    List<String> getChannelListByPids(@Param("pids") List<Integer> pids);

    List<Channel> getChannels(@Param("channel")String channel);
}
